package com.learning.platform.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

public class ReportRequest {
    @NotNull(message = "目标ID不能为空")
    private Long targetId;

    @NotBlank(message = "目标类型不能为空")
    private String targetType; // POST, ANSWER

    @NotBlank(message = "举报原因不能为空")
    @Size(min = 2, max = 200, message = "举报原因长度应在2-200个字符之间")
    private String reason;

    // Constructors
    public ReportRequest() {}

    // Getters and Setters
    public Long getTargetId() {
        return targetId;
    }

    public void setTargetId(Long targetId) {
        this.targetId = targetId;
    }

    public String getTargetType() {
        return targetType;
    }

    public void setTargetType(String targetType) {
        this.targetType = targetType;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
}

